import request from "./mockAjax";


//获取朋友列表
export const getFirendList = () => {
    return request.get('/firendlist')
}

//获取用户1的朋友列表
export const getUser1Firend = () => {
    return request.get('/ismyfirend')
}

//获取聊天记录
export const getChat = () => {
    return request.get('/chat')
}

//添加新的聊天记录
export const addMsg = (data) => request({
    url: '/addmsg',
    method: 'post',
    data: data
})
